package com.wasion.pwportable.protocol.analyzer.terminal;

import com.wasion.pwportable.protocol.Protocol;
import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

public class COMM_CONTROL_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {
		String dataType = ackBS.substring(DATATPYESTARTBIT, DATATPYENDBIT);
		String data = ackBS.substring(DATABITSTART, DATABITSTART + 2);

		if (dataType.equalsIgnoreCase(Protocol.T_COMM_CONTROL_RD)) {
			result.setComm_control(data);
		}
	}
}
